import java.util.Random;
import java.util.Arrays;

public class Two_Col_Ball {
	

	public static void main (String[] args) {

		//定义大小为7的数组存放6+1个双色球的数字
		int nums[] = new int[7];

		//取6次随机数,用for循环   
		Random ra = new Random();
		int red_num = 33;
		boolean flag = false;

		//找红球
		for (int i = 0; i < 6; i++){

			do {
				nums[i] = ra.nextInt(red_num) + 1;
				//去除重复
				for(int j = 0; j < i; j++) {
					if(nums[i] == nums[j]){
						flag = true;
						break;
					} else {
						flag = false;
					}
				}
			} while(flag);
		}



		//找蓝球
		int blue_num =16;
		nums[6] = ra.nextInt(blue_num) +1;

		//打印结果
		System.out.println("双色球中奖号码是: " + "\n" + "红 红 红 红 红 红 蓝");
		System.out.println(Arrays.toString(nums));

		}
}